package com.zc.zby.basicframedemo.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.zc.zby.basicframedemo.R;
import com.zc.zby.basicframedemo.model.HuanBaoItemModel;
import com.zc.zby.basicframedemo.utils.AdapterViewUtil;
import com.zc.zby.basicframedemo.viewholder.Progress3ViewHolder;

public class Progress3Adapter extends RecyclerArrayAdapter<HuanBaoItemModel> {
    public Progress3Adapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        View itemLayouts = AdapterViewUtil.getItemLayouts(parent.getContext(), viewType, R.layout.item_huanbao);
        return new Progress3ViewHolder(itemLayouts);
    }
}